package com.ruoyi.project.module.fbsDetail.service;

import com.ruoyi.project.module.fbsDetail.domain.FbsDetail;
import com.ruoyi.project.module.fbsHead.domain.FbsHead;
import com.ruoyi.project.module.purchases.domain.Purchases;

import java.util.List;

/**
 * FBS明细 服务层
 * 
 * @author lcx
 * @date 2018-09-17
 */
public interface IFbsDetailService 
{
	/**
     * 查询FBS明细信息
     * 
     * @param id FBS明细ID
     * @return FBS明细信息
     */
	public FbsDetail selectFbsDetailById(Integer id);
	
	/**
     * 查询FBS明细列表
     * 
     * @param fbsDetail FBS明细信息
     * @return FBS明细集合
     */
	public List<FbsDetail> selectFbsDetailList(FbsDetail fbsDetail);
	
	/**
     * 新增FBS明细
     * 
     * @param fbsDetail FBS明细信息
     * @return 结果
     */
	public int insertFbsDetail(FbsDetail fbsDetail);
	
	/**
     * 修改FBS明细
     * 
     * @param fbsDetail FBS明细信息
     * @return 结果
     */
	public int updateFbsDetail(FbsDetail fbsDetail);
		
	/**
     * 删除FBS明细信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteFbsDetailByIds(String ids);

	/**
	 * @Author lcx
	 * @Date 2018/9/19 15:08
	 * 查询批量签收fbs的列表
	 */
	List<FbsDetail> selectFbsHeadListAsEditReceived(FbsDetail fbsDetail);

	/**
	 * @Author lcx
	 * @Date 2018/9/20 11:33
	 * 批量操作转入fbs
	 */
    int updatePurchasesAsReceived(String[] ids, String[] actualQuantity, String[] headIds);

    /*计算合计*/
    List<FbsDetail> selectSumCountFbsDetailList(FbsDetail fbsDetail);
}
